<div id="div_edit_detalle_succes">
[?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date', 'Javascript') ?]
[?php use_helper('Utilidades', 'Window') ?]
[?php //use_stylesheet('<?php echo $this->getParameterValue('css', sfConfig::get('sf_admin_web_dir').'/css/main') ?>') ?]

<div id="sf_admin_container">
[?php if($<?php echo $this->getSingularName() ?>->isNew()):  ?]
  [?php $objeto_accion = '<?php echo $this->getParameterValue('edit.nuevo_objeto', 'Nuevo') ?>'; ?]
[?php else: ?]
  [?php $objeto_accion = '<?php echo $this->getParameterValue('edit.editar_objeto', 'Editar') ?>'; ?]
[?php endif; ?]



<h1>[?php echo $objeto_accion ?]&nbsp;<?php echo $this->getI18NString('edit.title', $this->getModuleName()) ?></h1>

<div id="sf_admin_bar">
<?php if ($this->getParameterValue('list.filters')): ?>
[?php include_partial('filters', array('filters' => (isset($filters)?$filters:array()))) ?]
<?php endif; ?>
</div>

<div id="sf_admin_header">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</div>

<div id="sf_admin_content">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_form', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?]
</div>

<div id="sf_admin_footer">
[?php include_partial('<?php echo $this->getModuleName() ?>/edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?]
</div>

</div>
</div>

[?php
if( $actualizarListaDetalles == true): ?]

<script type="text/javascript">
//<![CDATA[
new Ajax.Updater({success:"div_detalles",failure:'div_error'}, '<?php echo $this->getParameterValue('maestro') ?>/listarDetalles?id='+'[?php echo $maestro_pk;  ?]', {asynchronous:true, evalScripts:true, method:'GET' });

//]]>

</script>
[?php endif; ?]
